#include<stdio.h> 
#define N 2
struct staff
{unsigned number;
char name[10];
float salary;
};
int main()
{  int i;float aver;
struct staff sala[N];
for(i=0;i<N;i++)
   {printf("please input number:");scanf("%d",&sala[i].number);
   printf("please input name:");scanf("%d",&sala[i].name);
   printf("please input salary:");scanf("%d",&sala[i].salary);
   aver=aver+sala[i].salary;
   }
   aver=aver/N;
   printf("Staff information is shown below:\n");
   for(i=0;i<N;i++)
   {printf("number=%d,",sala[i].number);
   printf("name=%s,",sala[i].name);
   printf("salary=%f\n,",sala[i].salary);
   }
   printf("Average value of salary is:%f\n",aver);
   return 0;
}
